package com.sixth.docker.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sixth.core.entity.CheckResult;
import com.sixth.core.vo.R;
import com.sixth.docker.mapper.CheckResultMapper;
import com.sixth.docker.service.CheckResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: sixth-hospital-parent
 * @description:
 * @author: 赵庆龙
 * @create: 2024-09-04 10:11
 **/
@Service
public class CheckResultServiceImpl implements CheckResultService {
    @Autowired
    private CheckResultMapper checkResultMapper;
    @Override
    public R<CheckResult> selectByItemId(String itemId) {
        QueryWrapper<CheckResult> wrapper = new QueryWrapper<>();
            wrapper.eq("coc_id",itemId);
            CheckResult checkResult = checkResultMapper.selectOne(wrapper);
            return R.ok(checkResult);
    }
}
